package com.inews.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.inews.R;
import com.inews.bean.Task;
import com.inews.logic.MainService;

public class LoginActivity extends Activity implements IWeiboActivity{
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login); 
		
		//启动主服务
		Intent service = new Intent(this, MainService.class);
		startService(service);
		
		MainService.addActivity(this);
		
		Intent intent = new Intent(this, AuthActivity.class);
		startActivity(intent);
		
		

//		MainService.addActivity(this);
		
	}

	@Override
	public void init() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void refresh(Object...objects) {
		
	}

}
